package org.cars.forset.service;

import com.dtflys.forest.annotation.Address;
import com.dtflys.forest.annotation.Get;
import com.dtflys.forest.annotation.Post;
import com.dtflys.forest.annotation.Query;

/**
 * @author caoqianfan
 * @date 2024/3/14 14:18
 */
public interface MyClient {

    @Get("http://localhost:8080/hello")
    String helloForest();

    @Address(host = "127.0.0.1", port = "8080")
    @Post("/setTwoParams")
    String setTwoParams(@Query("name") String name, @Query("phone") String phone, @Query("ps") Integer ps);

}
